<!DOCTYPE html>
<html lang="en">
<head>
	<!--meta charset="utf-8"-->
	<title>登陆</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<!-- The styles -->
	<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
	<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	</style>
	<link href="css/bootstrap-responsive.css" rel="stylesheet">
	<link href="css/charisma-app.css" rel="stylesheet">
	<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
	<link href='css/fullcalendar.css' rel='stylesheet'>
	<link href='css/fullcalendar.print.css' rel='stylesheet'  media='print'>
	<link href='css/chosen.css' rel='stylesheet'>
	<link href='css/uniform.default.css' rel='stylesheet'>
	<link href='css/colorbox.css' rel='stylesheet'>
	<link href='css/jquery.cleditor.css' rel='stylesheet'>
	<link href='css/jquery.noty.css' rel='stylesheet'>
	<link href='css/noty_theme_default.css' rel='stylesheet'>
	<link href='css/elfinder.min.css' rel='stylesheet'>
	<link href='css/elfinder.theme.css' rel='stylesheet'>
	<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='css/opa-icons.css' rel='stylesheet'>
	<link href='css/uploadify.css' rel='stylesheet'>

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="bower_components/html5shiv/dist/html5shiv.js"></script>
	<![endif]-->

	<!-- The fav icon -->
	<link rel="shortcut icon" href="img/favicon.ico">
		
</head>

<body>
		<div class="container-fluid">
		<div class="row-fluid">
		
			<div class="row-fluid">
				<div class="span12 center login-header">
					<h2>欢  迎  使  用</h2>
				</div><!--/span-->
			</div><!--/row-->
			
			<div class="row-fluid">
				<div class="well span5 center login-box">
					<div class="alert alert-info">
						请输入您的用户名和密码
					</div>
					<form id="form" class="form-horizontal" action="login2" method="post">
						<fieldset>
							<input type="hidden" id="hidden" value="" name="type">
							<div class="input-prepend" title="Username">
								<span class="add-on"><i class="icon-user"></i></span><input class="input-large span10" name="username" id="username" type="text" value="" />
							</div>
							<div class="clearfix"></div>
							<div class="input-prepend" title="Password">
								<span class="add-on"><i class="icon-lock"></i></span><input class="input-large span10" name="password" id="password" type="password" value="" />
							</div>
							<div class="clearfix"></div>

							<p class="center span5">
							<button type="button" class="btn btn-primary" onclick="validate()">Login</button>
							</p>
						</fieldset>
					</form>
					<div id="demo" class="center" style="overflow:hidden;height:80px;width:300px;">
						<ul id="demo1"> 
							<li style="font-size: large;">考勤出现问题的同学请联系以下人员反馈：</li>
							<li>辛    诚  电话：18360732861 QQ：694571475</li>
							<li>张宇洋  电话：18626484313 QQ：497665230</li>
							<li>黄涛贻  电话：13347978553 QQ：153116300</li>
						</ul> 
						<div id="demo2"></div>
					</div>
					
						<script> 
						var speed=100;
						var demo=document.getElementById("demo"); 
						var demo2=document.getElementById("demo2"); 
						var demo1=document.getElementById("demo1"); 
						demo2.innerHTML=demo1.innerHTML;
						function Marquee(){ 
							if(demo2.offsetTop-demo.scrollTop<=0) 
							  demo.scrollTop-=demo1.offsetHeight;
							else{ 
							  demo.scrollTop++;
							} 
						} 
						var MyMar=setInterval(Marquee,speed);
						demo.onmouseover=function() {
							clearInterval(MyMar);
						};
						demo.onmouseout = function() {
							MyMar = setInterval(Marquee, speed);
						};
						function validate(){
							var username = document.getElementById("username");
							var hidden = document.getElementById("hidden");
							var rePhone = /^1\d{10}$/;
							var reId = /^\d{5}$/;
							var reName = new RegExp("^([\u4E00-\uFA29])*$");
							if(rePhone.test(username.value)){
								hidden.value = "phone";
								$("#form").submit();
							}else if(reId.test(username.value)){
								hidden.value = "account";
								$("#form").submit();
							}else if(reName.test(username.value)){
								hidden.value = "name";
								$("#form").submit();
							}else{
								alert("无效的用户名");
							}
							
						}
						</script> 
				</div><!--/span-->
			</div><!--/row-->
			<h3 align="center" style="color: blue">本系统目前支持的手机有：</h3>
			<table align="center">
				<tr>
					<td style="color: red;">
						HTC:
					</td>
					<td style="color: blue;">HTC One 系列</td>
				</tr>
				<tr>
					<td style="color: red;">三星:</td>
					<td style="color: blue;">Note 2、Note 3(国行)、Galaxy S3、Galaxy S5</td>
				</tr>
				<tr>
					<td style="color: red;">小米:</td>
					<td style="color: blue;">小米 2A、小米 3</td>
				</tr>
				<tr>
					<td style="color: red;">LG:</td>
					<td style="color: blue;">LG Prada 3.0、LG Optimus 系列</td>
				</tr>
				<tr>
					<td style="color: red;">SONY:</td>
					<td style="color: blue;">Xperia Z系列</td>
				</tr>
			</table>
				<h4 align="center" style="color: blue;">更多机型说明请点击
						<a href="download/NFC.doc">下载</a>
				</h4>
				<h4 align="center" style="color: blue;">OTG版本下载
						<a href="download/attendance-OTG.apk">下载</a>
				</h4>
				<h4 align="center" style="color: blue;">NFC版本下载
						<a href="download/attendanceV2.1.apk">下载</a>
				</h4>
				</div><!--/fluid-row-->
		
	</div><!--/.fluid-container-->

	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery -->
	<script src="js/jquery-1.7.2.min.js"></script>
	<!-- jQuery UI -->
	<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
	<!-- transition / effect library -->
	<script src="js/bootstrap-transition.js"></script>
	<!-- alert enhancer library -->
	<script src="js/bootstrap-alert.js"></script>
	<!-- modal / dialog library -->
	<script src="js/bootstrap-modal.js"></script>
	<!-- custom dropdown library -->
	<script src="js/bootstrap-dropdown.js"></script>
	<!-- scrolspy library -->
	<script src="js/bootstrap-scrollspy.js"></script>
	<!-- library for creating tabs -->
	<script src="js/bootstrap-tab.js"></script>
	<!-- library for advanced tooltip -->
	<script src="js/bootstrap-tooltip.js"></script>
	<!-- popover effect library -->
	<script src="js/bootstrap-popover.js"></script>
	<!-- button enhancer library -->
	<script src="js/bootstrap-button.js"></script>
	<!-- accordion library (optional, not used in demo) -->
	<script src="js/bootstrap-collapse.js"></script>
	<!-- carousel slideshow library (optional, not used in demo) -->
	<script src="js/bootstrap-carousel.js"></script>
	<!-- autocomplete library -->
	<script src="js/bootstrap-typeahead.js"></script>
	<!-- tour library -->
	<script src="js/bootstrap-tour.js"></script>
	<!-- library for cookie management -->
	<script src="js/jquery.cookie.js"></script>
	<!-- calander plugin -->
	<script src='js/fullcalendar.min.js'></script>
	<!-- data table plugin -->
	<script src='js/jquery.dataTables.min.js'></script>

	<!-- chart libraries start -->
	<script src="js/excanvas.js"></script>
	<script src="js/jquery.flot.min.js"></script>
	<script src="js/jquery.flot.pie.min.js"></script>
	<script src="js/jquery.flot.stack.js"></script>
	<script src="js/jquery.flot.resize.min.js"></script>
	<!-- chart libraries end -->

	<!-- select or dropdown enhancer -->
	<script src="js/jquery.chosen.min.js"></script>
	<!-- checkbox, radio, and file input styler -->
	<script src="js/jquery.uniform.min.js"></script>
	<!-- plugin for gallery image view -->
	<script src="js/jquery.colorbox.min.js"></script>
	<!-- rich text editor library -->
	<script src="js/jquery.cleditor.min.js"></script>
	<!-- notification plugin -->
	<script src="js/jquery.noty.js"></script>
	<!-- file manager library -->
	<script src="js/jquery.elfinder.min.js"></script>
	<!-- star rating plugin -->
	<script src="js/jquery.raty.min.js"></script>
	<!-- for iOS style toggle switch -->
	<script src="js/jquery.iphone.toggle.js"></script>
	<!-- autogrowing textarea plugin -->
	<script src="js/jquery.autogrow-textarea.js"></script>
	<!-- multiple file upload plugin -->
	<script src="js/jquery.uploadify-3.1.min.js"></script>
	<!-- history.js for cross-browser state change on ajax -->
	<script src="js/jquery.history.js"></script>
	<!-- application script for Charisma demo -->
	<script src="js/charisma.js"></script>
		
</body>
</html>
